package com.kakaxi.mybilibili.base;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * 基础多类型项抽象类
 * Created by kakaxi on 16/11/19.
 */

public abstract class BaseMultiItemEntity<T> implements MultiItemEntity {

    /** 类型 **/
    private int itemType;

    /** 数据 **/
    private T mData;

    public BaseMultiItemEntity(int itemType, T data) {
        this.itemType = itemType;
        mData = data;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public void setData(T data) {
        mData = data;
    }

    public T getData() {
        return mData;
    }

}
